<!DOCTYPE html>
<html>
<head>
	<title>E8NET</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <include file="./App/Admin/View/Include/css.html" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/compiled/tables.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

    <include file="./App/Admin/View/Include/navbar.html" />
    <include file="./App/Admin/View/Include/menu.html" />


	<!-- main container -->
    <div class="content">

        <div class="container-fluid">
            <div id="pad-wrapper">

                <!-- orders table -->
                <div class="table-wrapper orders-table section">
                    <div class="row-fluid head">
                        <div class="span12">
                            <h4>考情管理</h4>
                        </div>
                    </div>

                    <div class="row-fluid filter-block">
                        <div class="pull-right">
                            <div class="ui-select" style="margin-top: -2px;">
                                <select onchange="change($(this).val())">
                                    <option value="" /> 请选择一个教学计划
                                    <volist name="teachplanList" id="t">
                                        <option value="{$t.id}" <if condition="$teachplan['id'] eq $t['id']">selected</if> /> {$t.name}
                                    </volist>
                                </select>
                            </div>
                            <a href="{:U('Attend/export',array('tid'=>$teachplan['id']))}" class="btn-flat success new-product">+ 导出考勤</a>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th class="span5">
                                    教学计划名称
                                </th>
                                <th class="span5">
                                    <span class="line"></span>
                                    学号
                                </th>
                                <th class="span5">
                                    <span class="line"></span>
                                    姓名
                                </th>

                                <th class="span3">
                                    <span class="line"></span>
                                    周次
                                </th>
                                <th class="span3">
                                    <span class="line"></span>
                                    星期
                                </th>
                                <th class="span3">
                                    <span class="line"></span>
                                    节次
                                </th>
                                <th class="span3">
                                    <span class="line"></span>
                                    出勤状态
                                </th>
                                <th class="span2 align-right">
                                    <span class="line"></span>ACTION
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <!-- row -->
                            <volist name="attendList" id="attend">
                                <tr>
                                    <td>{$attend.teachplan_name}</td>
                                    <td>{$attend.student_id}</td>
                                    <td>{$attend.student_name}</td>
                                    <td>第 {$attend.week} 周</td>
                                    <td>星期 {$attend.xq}</td>
                                    <td>第 {$attend.start}~{$attend.end} 节</td>
                                    <td>{$attend.status}</td>
                                    <td class="align-right">
                                        <a href="">编辑</a>&nbsp;
                                        <a href="javascript:void(0);" onclick="return delConfirm('__APP__/Class/del/id/{$class.id}','确定删除这条出勤记录吗')">删除</a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- end orders table -->

                <div class="row ctrls">
                    <div class="pagination pull-right">
                        <ul>
                            {$page}
                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!-- end main container -->

	<include file="./App/Admin/View/Include/js.html" />

    <script>
        function change(id) {
            window.location.href = "__ACTION__/tid/" + id;
        }
    </script>

    <script>
    </script>

</body>
</html>